package com.stop.think.shiro.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PayPalConfig {


  public static String CLIENT_ID;
  @Value("${paypal.client.id}")
  public void setClientId(String clientId) {
    PayPalConfig.CLIENT_ID = clientId;
  }

  public static String CLIENT_SECRET;
  @Value("${paypal.client.secret}")
  public void setClientSecret(String clientSecret) {
    PayPalConfig.CLIENT_SECRET = clientSecret;
  }

  public static String BRAND_NAME;
  @Value("${paypal.brand.name}")
  public void setBrandName(String brandName) {
    PayPalConfig.BRAND_NAME = brandName;
  }

  public final static String LANDING_PAGE = "NO_PREFERENCE";
  public final static String SHIPPING_PREFERENCE = "NO_SHIPPING";
  public final static String USER_ACTION = "PAY_NOW";
  public final static String INTENT = "CAPTURE";
}
